package mmap

// MmapObj 映射虚拟内存页
type MmapObj []byte

// New 创建虚拟内存
func (m *MmapObj) New(size int) (err error) {
	*m, err = Mmap(size)
	return
}

// Release 释放虚拟内存
func (m *MmapObj) Release() error {
	return Munmap(*m)
}
